<?php

return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'Quetzal Task',
    
    'sourceLanguage'=>'ru_ru',
    'language'=>'ru',
    'charset'=>'utf-8',

	'theme' => 'bootstrap',

    'aliases' => array(
//        'ext' => 'system.extensions',
    ),
    
    'preload'=>array('log','debug'),

    // autoloading model and component classes
    'import'=>array(
        'ext.*',
//        'ext.yii-mail.YiiMailMessage',
		'ext.giix-components.*',

        
        'application.models.*',
        'application.components.*',
        'application.extensions.*',
        'application.extensions.PEAR.*',
        
        'application.modules.task.*',
        'application.modules.task.models.*',
        'application.modules.task.components.*',
        'application.modules.user.*',
        'application.modules.user.models.*',
        'application.modules.user.components.*',

		'webroot.themes.bootstrap.components.*'
        
    ),

    'modules'=>array(
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'Colahonda',
            'ipFilters'=>array(),
            'newFileMode'=>0666,
            'newDirMode'=>0777,
            'generatorPaths'=>array(
                'ext.giix-core',
            )
        ),
        'task' => array(
            'defaultController' => 'dashboard',
        ),
        'mail' => array(
            'defaultController' => 'default'
        ),
        'user' => array(
            'defaultController' => 'login',
        ),
        'yiibackend' => array(
            'password' => 'crminside2011',
            'timeformat' => 'dd MMMM y hh:mm',
            'registerModels' => array(
                'application.modules.user.models.Users',
                'application.modules.task.models.TaskProject',
            ),
        ),
    ),

    // application components
    'components'=>array(
        'user'=>array(
            // enable cookie-based authentication
            'class'=>'WebUser',
            'allowAutoLogin'=>true,
            'loginUrl'=>array('/user/login'),
        ),
		'assetManager' => array(
			'class' => 'application.components.production.CProductionAssetManager'
		),
        // uncomment the following to enable URLs in path-format
        /*
        'urlManager'=>array(
            'urlFormat'=>'path',
            'rules'=>array(
                '<controller:\w+>/<id:\d+>'=>'<controller>/view',
                '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
            ),
        ),
        */
        'debug'=>array(
            'class' => 'VarDumper'
        ),
        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=qtask',
			'tablePrefix' => 'qt_',
            'emulatePrepare' => true,
            'username' => 'qtask',
            'password' => 'qtaskqtask',
            'charset' => 'utf8',
            'enableProfiling' => true,//@$_GET['__prof']=='Y',
            'schemaCachingDuration' => 3600,
            'queryCachingDuration' => 3600
        ),
        'authManager'=>array(
            'class'=>'PhpAuthManager',
            'defaultRoles'=>array('guest'),
        ),
        'mail' => array(
            'class' => 'ext.yii-mail.YiiMail',
            'transportType' => 'php',
            'viewPath' => 'application',
            'logging' => true,
            'dryRun' => false
         ),
        'errorHandler'=>array(
            // use 'site/error' action to display errors
            'errorAction'=>'site/error',
        ),
        'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                array(
                    'class'=>'CProfileLogRoute',
                    'levels'=>'error, warning',
                ),
                // uncomment the following to show log messages on web pages
                /*
                array(
                    'class'=>'CWebLogRoute',
                ),
                */
            ),
        ),
    ),

    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params'=>array(
    ),
);
